const Mock = require('mockjs')
const fs = require('fs');
const data = Mock.mock({
    'users|50':[{
        'username|+1': 102000,
        'pwd': '@guid()',
        'createDate':"2022-12-@datetime(dd HH:mm:ss)"
    }]
});


let dataStr = "";
// data.users.forEach(element => {
//     dataStr += JSON.stringify(element);
// });
console.log(data);
// fs.writeFile("C:\\Users\\BDK-THINKPAD\\Desktop\\user.json",dataStr,function(err){
//     if(!err){
//         console.log("suc")
//     }
// });
// data.join("");